package com.yang.crawler.common;


public enum ResultCode {
    SUCCESS(200, "操作成功"),
    FAIL(400, "操作失败"),
    WEBSITE_NOT_SUPPORT(400, "暂不支持该网站"),

    FONT_BUILD_ERROR(400, "字体构建出错"),
    HTML_2_PDF_ERROR(400, "html转pdf出错"),

    FILE_NOT_EXIST(400, "文件不存在"),
    SERVER_ERROR(500, "服务器错误");

    private int code;

    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}

